export const formItems = [
  {
    prop: "name",
    label: "名称",
    placeholder: "请输入",
    lg: 6,
    type: "input",
    otherOptions: {},
  },
  {
    prop: "status",
    label: "状态",
    type: "select",
    options: [
      {
        key: 1,
        value: "启用",
      },
      {
        key: 0,
        value: "禁用",
      },
    ],
    placeholder: "请选择状态",
    lg: 6,
    otherOptions: {
      // style: "width:200px",
    },
  },
  {
    prop: "created_time",
    label: "创建时间",
    lg: 10,
    type: "datetimerange",
    valueFormat: "x",
    otherOptions: {
      defaultTime: [
        new Date(2000, 1, 1, 0, 0, 0),
        new Date(2000, 1, 1, 23, 59, 59),
      ],
    },
  },
];

export const propList = [
  {
    label: "标识",
    prop: "channel_code",
    showOverflowTooltip: false,
  },
  {
    label: "名称",
    prop: "channel_name",
    showOverflowTooltip: false,
  },

  {
    label: "状态",
    slotName: "status",
    // prop: 'type'
  },
  {
    label: "回调方式",
    slotName: "callback_type",
    width: "100",
  },
  {
    label: "是否同步",
    slotName: "callback_type",
    width: "160",
  },
  {
    label: "回调地址",
    prop: "callback_url",
    width: "160",
    showOverflowTooltip: false,
  },
  {
    label: "创建时间",
    prop: "created_time",
    width: "170",
  },
  {
    label: "修改时间",
    prop: "updated_time",
    width: "170",
  },
  {
    label: "操作",
    slotName: "op",
    fixed: "right",
    showOverflowTooltip: false,
    // width: "200",
  },
];

export const dialogConfig = {
  title: "渠道",
};
